﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp7
{
    class Program
    {
        static void Main(string[] args)
        {

            //蝙蝠战车的例子
            Car car = new Car();
            IRun a = car;
            a.Run();
            Console.WriteLine("-------------------");
            IClimb b = car;
            b.Climb();
            Console.WriteLine("-------------------");
            IFly c = car;
            c.Fly();
        }
    }
}
